<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>proxy</title>
</head>
<body>
<script>
    var obj=new Proxy({},{
        get:function(target,key,receiver){
            console.log(`getting ${key}！`);
            return Reflect.get(target,key,receiver);
        },
        ste:function(){
            console.log(`setting ${key}!`);
            return Reflect.set(target,key,value,receiver);
        }
    });

    obj.count=1;
    ++obj.count;
</script>
</body>
</html>